package com.heima.feign;

import com.heima.fallback.WemediaClientFallback;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author chenshan
 */
@FeignClient(value = "leadnews-wemedia", fallbackFactory = WemediaClientFallback.class)
public interface WemediaFeignClient {
    /**
     * 本地自定义敏感词校验（DFA校验）
     * @param content 检测内容
     * @return Boolean
     */
    @PostMapping("api/v1/news/content")
    public ResponseResult<Boolean> checkContent(@RequestBody String content);
}
